module.exports = {
    name: {
        label: '商品名称',
        rule: {
            NotNull: true
        },
        type: 'input'
    },
    brandId: {
        label: '品牌',
        type: 'onlyselect'
    },
    imgs: {
        label: '轮播图片',
        data_type: 'TEXT',
        attr: {
            placeholder: '750*750,最多9张',
            width: 750,
            height: 750,
            limit: 9
        },
        rule: { NotNull: true },
        type: 'image'
    },
    description: {
        label: '描述',
        unList: true,
        type: 'textarea'
    },
    specification: {
        label: '规格',
        unList: true,
        attr: {
            models: {
                name: {
                    label: '属性',
                    rule: { NotNull: true },
                    type: 'input'
                },
                value: {
                    label: '值',
                    rule: { NotNull: true },
                    style: 'flex:1;',
                    type: 'input'
                }
            }
        },
        type: 'table'
    },
    content: {
        label: '详细',
        unList: true,
        type: 'editor'
    },
    sales: {
        label: '销量',
        attr: { type: 'number' },
        rule: { PositiveInt: true },
        type: 'input'
    },
    status: {
        label: '上架',
        defaultValue: 1,
        type: 'switch'
    },
    functionality: {//功能性商品 不展示在商品列表
        label: '功能性商品',
        defaultValue: 0,
        unList: true
    }
}